package pcjavanet.mobilesell.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDbidIsNull() {
            addCriterion("dbid is null");
            return (Criteria) this;
        }

        public Criteria andDbidIsNotNull() {
            addCriterion("dbid is not null");
            return (Criteria) this;
        }

        public Criteria andDbidEqualTo(Integer value) {
            addCriterion("dbid =", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotEqualTo(Integer value) {
            addCriterion("dbid <>", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidGreaterThan(Integer value) {
            addCriterion("dbid >", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("dbid >=", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidLessThan(Integer value) {
            addCriterion("dbid <", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidLessThanOrEqualTo(Integer value) {
            addCriterion("dbid <=", value, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidIn(List<Integer> values) {
            addCriterion("dbid in", values, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotIn(List<Integer> values) {
            addCriterion("dbid not in", values, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidBetween(Integer value1, Integer value2) {
            addCriterion("dbid between", value1, value2, "dbid");
            return (Criteria) this;
        }

        public Criteria andDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("dbid not between", value1, value2, "dbid");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidIsNull() {
            addCriterion("ref_catalog_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidIsNotNull() {
            addCriterion("ref_catalog_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidEqualTo(Integer value) {
            addCriterion("ref_catalog_dbid =", value, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidNotEqualTo(Integer value) {
            addCriterion("ref_catalog_dbid <>", value, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidGreaterThan(Integer value) {
            addCriterion("ref_catalog_dbid >", value, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_catalog_dbid >=", value, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidLessThan(Integer value) {
            addCriterion("ref_catalog_dbid <", value, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_catalog_dbid <=", value, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidIn(List<Integer> values) {
            addCriterion("ref_catalog_dbid in", values, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidNotIn(List<Integer> values) {
            addCriterion("ref_catalog_dbid not in", values, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_catalog_dbid between", value1, value2, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefCatalogDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_catalog_dbid not between", value1, value2, "refCatalogDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIsNull() {
            addCriterion("ref_unit_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIsNotNull() {
            addCriterion("ref_unit_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidEqualTo(Integer value) {
            addCriterion("ref_unit_dbid =", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotEqualTo(Integer value) {
            addCriterion("ref_unit_dbid <>", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidGreaterThan(Integer value) {
            addCriterion("ref_unit_dbid >", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_unit_dbid >=", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidLessThan(Integer value) {
            addCriterion("ref_unit_dbid <", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_unit_dbid <=", value, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidIn(List<Integer> values) {
            addCriterion("ref_unit_dbid in", values, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotIn(List<Integer> values) {
            addCriterion("ref_unit_dbid not in", values, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_unit_dbid between", value1, value2, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefUnitDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_unit_dbid not between", value1, value2, "refUnitDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIsNull() {
            addCriterion("ref_configuration_dbid is null");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIsNotNull() {
            addCriterion("ref_configuration_dbid is not null");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid =", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid <>", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidGreaterThan(Integer value) {
            addCriterion("ref_configuration_dbid >", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid >=", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidLessThan(Integer value) {
            addCriterion("ref_configuration_dbid <", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidLessThanOrEqualTo(Integer value) {
            addCriterion("ref_configuration_dbid <=", value, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidIn(List<Integer> values) {
            addCriterion("ref_configuration_dbid in", values, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotIn(List<Integer> values) {
            addCriterion("ref_configuration_dbid not in", values, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidBetween(Integer value1, Integer value2) {
            addCriterion("ref_configuration_dbid between", value1, value2, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andRefConfigurationDbidNotBetween(Integer value1, Integer value2) {
            addCriterion("ref_configuration_dbid not between", value1, value2, "refConfigurationDbid");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Integer value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Integer value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Integer value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Integer value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Integer value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Integer> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Integer> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Integer value1, Integer value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andCatatypeidIsNull() {
            addCriterion("catatypeid is null");
            return (Criteria) this;
        }

        public Criteria andCatatypeidIsNotNull() {
            addCriterion("catatypeid is not null");
            return (Criteria) this;
        }

        public Criteria andCatatypeidEqualTo(Integer value) {
            addCriterion("catatypeid =", value, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidNotEqualTo(Integer value) {
            addCriterion("catatypeid <>", value, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidGreaterThan(Integer value) {
            addCriterion("catatypeid >", value, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("catatypeid >=", value, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidLessThan(Integer value) {
            addCriterion("catatypeid <", value, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidLessThanOrEqualTo(Integer value) {
            addCriterion("catatypeid <=", value, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidIn(List<Integer> values) {
            addCriterion("catatypeid in", values, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidNotIn(List<Integer> values) {
            addCriterion("catatypeid not in", values, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidBetween(Integer value1, Integer value2) {
            addCriterion("catatypeid between", value1, value2, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andCatatypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("catatypeid not between", value1, value2, "catatypeid");
            return (Criteria) this;
        }

        public Criteria andRetailpriceIsNull() {
            addCriterion("retailprice is null");
            return (Criteria) this;
        }

        public Criteria andRetailpriceIsNotNull() {
            addCriterion("retailprice is not null");
            return (Criteria) this;
        }

        public Criteria andRetailpriceEqualTo(Double value) {
            addCriterion("retailprice =", value, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceNotEqualTo(Double value) {
            addCriterion("retailprice <>", value, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceGreaterThan(Double value) {
            addCriterion("retailprice >", value, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("retailprice >=", value, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceLessThan(Double value) {
            addCriterion("retailprice <", value, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceLessThanOrEqualTo(Double value) {
            addCriterion("retailprice <=", value, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceIn(List<Double> values) {
            addCriterion("retailprice in", values, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceNotIn(List<Double> values) {
            addCriterion("retailprice not in", values, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceBetween(Double value1, Double value2) {
            addCriterion("retailprice between", value1, value2, "retailprice");
            return (Criteria) this;
        }

        public Criteria andRetailpriceNotBetween(Double value1, Double value2) {
            addCriterion("retailprice not between", value1, value2, "retailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceIsNull() {
            addCriterion("lowretailprice is null");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceIsNotNull() {
            addCriterion("lowretailprice is not null");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceEqualTo(Double value) {
            addCriterion("lowretailprice =", value, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceNotEqualTo(Double value) {
            addCriterion("lowretailprice <>", value, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceGreaterThan(Double value) {
            addCriterion("lowretailprice >", value, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("lowretailprice >=", value, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceLessThan(Double value) {
            addCriterion("lowretailprice <", value, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceLessThanOrEqualTo(Double value) {
            addCriterion("lowretailprice <=", value, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceIn(List<Double> values) {
            addCriterion("lowretailprice in", values, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceNotIn(List<Double> values) {
            addCriterion("lowretailprice not in", values, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceBetween(Double value1, Double value2) {
            addCriterion("lowretailprice between", value1, value2, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowretailpriceNotBetween(Double value1, Double value2) {
            addCriterion("lowretailprice not between", value1, value2, "lowretailprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceIsNull() {
            addCriterion("lowwholesaleprice is null");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceIsNotNull() {
            addCriterion("lowwholesaleprice is not null");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceEqualTo(Double value) {
            addCriterion("lowwholesaleprice =", value, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceNotEqualTo(Double value) {
            addCriterion("lowwholesaleprice <>", value, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceGreaterThan(Double value) {
            addCriterion("lowwholesaleprice >", value, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceGreaterThanOrEqualTo(Double value) {
            addCriterion("lowwholesaleprice >=", value, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceLessThan(Double value) {
            addCriterion("lowwholesaleprice <", value, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceLessThanOrEqualTo(Double value) {
            addCriterion("lowwholesaleprice <=", value, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceIn(List<Double> values) {
            addCriterion("lowwholesaleprice in", values, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceNotIn(List<Double> values) {
            addCriterion("lowwholesaleprice not in", values, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceBetween(Double value1, Double value2) {
            addCriterion("lowwholesaleprice between", value1, value2, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andLowwholesalepriceNotBetween(Double value1, Double value2) {
            addCriterion("lowwholesaleprice not between", value1, value2, "lowwholesaleprice");
            return (Criteria) this;
        }

        public Criteria andPinnumberIsNull() {
            addCriterion("pinnumber is null");
            return (Criteria) this;
        }

        public Criteria andPinnumberIsNotNull() {
            addCriterion("pinnumber is not null");
            return (Criteria) this;
        }

        public Criteria andPinnumberEqualTo(String value) {
            addCriterion("pinnumber =", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberNotEqualTo(String value) {
            addCriterion("pinnumber <>", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberGreaterThan(String value) {
            addCriterion("pinnumber >", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberGreaterThanOrEqualTo(String value) {
            addCriterion("pinnumber >=", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberLessThan(String value) {
            addCriterion("pinnumber <", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberLessThanOrEqualTo(String value) {
            addCriterion("pinnumber <=", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberLike(String value) {
            addCriterion("pinnumber like", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberNotLike(String value) {
            addCriterion("pinnumber not like", value, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberIn(List<String> values) {
            addCriterion("pinnumber in", values, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberNotIn(List<String> values) {
            addCriterion("pinnumber not in", values, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberBetween(String value1, String value2) {
            addCriterion("pinnumber between", value1, value2, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andPinnumberNotBetween(String value1, String value2) {
            addCriterion("pinnumber not between", value1, value2, "pinnumber");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andNameLikeInsensitive(String value) {
            addCriterion("upper(name) like", value.toUpperCase(), "name");
            return this;
        }

        public Criteria andPinnumberLikeInsensitive(String value) {
            addCriterion("upper(pinnumber) like", value.toUpperCase(), "pinnumber");
            return this;
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}